Skip to content

Commit

Permalink
Merge pull request #4 from claromes/pip
Browse files Browse the repository at this point in the history
Publish package to PyPI
  • Loading branch information
claromes authored May 28, 2023
2 parents bbf4949 + e6f1cce commit b355d99
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 16 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# test
.pytest_cache/
fivbvis/__pycache__/
tests/__pycache__/
tests/vcr_cassettes/
example.py
request.txt

# build
/dist/
/build/
/*.egg-info/

# env
/venv
25 changes: 16 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ Responses are formatted using JSON.

## Installation

PyPI soon.

## Docs

[Objects documentation](docs/DOCS.md)
```shell
pip3 install fivbvis
```

## Usage
```python
>>> from fivbvis import VolleyMatch
>>> vm = VolleyMatch()
>>> print(vm.match(9211))
from fivbvis import VolleyMatch

vb = VolleyMatch()

print(vb.match(9211))
```
```json
{
"data":{
"assistantScorerCountryCode":"None",
Expand All @@ -34,13 +36,18 @@ PyPI soon.
}
}
```

## Docs

[Objects documentation](docs/DOCS.md)

## Development

$ `git clone git@github.com:claromes/fivbvis.git`

$ `cd fivbvis`

$ `pip install -r requirements.txt`
$ `pip3 install -r dev-requirements.txt`

## Requests

Expand Down
3 changes: 0 additions & 3 deletions TODO.md

This file was deleted.

4 changes: 4 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r requirements.txt

pytest==7.2.0
vcrpy==4.2.1
6 changes: 5 additions & 1 deletion fivbvis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .volley_match import VolleyMatch
from .article import Article
from .article import Article

from . import version

__version__ = version.__version__
1 change: 1 addition & 0 deletions fivbvis/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1.2'
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
requests==2.28.1
pytest==7.2.0
vcrpy==4.2.1
requests==2.28.1
42 changes: 42 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
from setuptools import setup, find_packages
import re

with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()

with open('requirements.txt', 'r', encoding='utf-8') as f:
install_requires = f.read().splitlines()

with open('fivbvis/version.py', 'r', encoding='utf-8') as f:
version = re.search(r"^__version__\s*=\s*'(.*)'.*$",
f.read(), flags=re.MULTILINE).group(1)

setup(
name='fivbvis',
version=version,
author='claromes',
license='GPLv3',
description='FIVB VIS Web Service Python Client',
long_description=long_description,
long_description_content_type='text/markdown',
keywords='api-wrapper fivbvis fivb volleyball beachvolleyball',
url='https://github.com/claromes/fivbvis',
packages=find_packages(exclude=['docs', 'tests*']),
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities'
],
python_requires='>=3.8',
install_requires=install_requires
)

0 comments on commit b355d99

Please sign in to comment.