From 2b0cb002346b25879406167927c841bb6abc3621 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 27 Feb 2018 00:21:01 +0200 Subject: Bump to v0.1.0 --- .gitignore | 2 ++ README.rst | 8 ++++---- setup.cfg | 4 ++-- setup.py | 6 ++++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index b943e2c..af56758 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ __pycache__ *.pyc .pytest_cache +build/ +dist/ diff --git a/README.rst b/README.rst index 5f743e2..9df3217 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ .NET Viewstate Decoder ====================== -A small Python library for decoding .NET viewstate. Can be used in various scraping scenarios. +A small Python 3 library for decoding .NET viewstate. Can be used in various scraping scenarios. Usage ----- @@ -10,7 +10,7 @@ The Viewstate decoder accepts Base64 encoded .NET viewstate data and returns the There are two main ways to use this package. First, it can be used as an imported library with the following typical use case: -:: +.. code-block:: python from viewstate import ViewState vs = ViewState(base64EncodedViewState) @@ -18,13 +18,13 @@ There are two main ways to use this package. First, it can be used as an importe It is also possible to feed the raw bytes directly: -:: +.. code-block:: python vs = ViewState(raw=b'\xff\x01....') Alternatively, the library can be used via command line by directly executing the module: -:: +.. code-block:: shell $ cat data.base64 | python -m viewstate diff --git a/setup.cfg b/setup.cfg index 60bd34d..008ce81 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bdist_wheel] -universal = 1 +universal=1 [metadata] -license_file = LICENSE \ No newline at end of file +license_file=LICENSE \ No newline at end of file diff --git a/setup.py b/setup.py index 461c120..0d1f033 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,13 @@ +from pathlib import Path + from setuptools import setup, find_packages -with open(path.join(here, 'README.rst'), encoding='utf-8') as f: +with open(str(Path(__file__).resolve().parents[0] / 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='viewstate', - version='0.0.1', + version='0.1.0', description='.NET viewstate decoder', long_description=long_description, homepage='https://github.com/yuvadm/viewstate', -- cgit v1.3.1