forked from tducret/revolut-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
53 lines (47 loc) · 1.86 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import setup
HERE = Path(__file__).parent
reqs_path = HERE / 'requirements.txt'
with open(reqs_path) as reqs_file:
requirements = reqs_file.read().splitlines()
# Based on http://peterdowns.com/posts/first-time-with-pypi.html
__version__ = '0.1.4' # Should match with __init.py__
_NAME = 'revolut'
_PACKAGE_LIST = ['revolut', 'revolut_bot']
_URL_GITHUB = 'https://github.com/tducret/revolut-python'
_DESCRIPTION = 'Package to get account balances and do operations on Revolut'
_MOTS_CLES = ['api', 'revolut', 'bank', 'parsing', 'cli',
'python-wrapper', 'scraping', 'scraper', 'parser']
_SCRIPTS = ['revolut_cli.py', 'revolutbot.py', 'revolut_transactions.py']
# To delete here + 'scripts' dans setup()
# if no command is used in the package
setup(
name=_NAME,
packages=_PACKAGE_LIST,
package_data={},
scripts=_SCRIPTS,
version=__version__,
license='MIT',
platforms='Posix; MacOS X',
description=_DESCRIPTION,
long_description=_DESCRIPTION,
author='Thibault Ducret',
author_email='thibault.ducret@gmail.com',
url=_URL_GITHUB,
download_url='%s/tarball/%s' % (_URL_GITHUB, __version__),
keywords=_MOTS_CLES,
setup_requires=requirements,
install_requires=requirements,
classifiers=['Programming Language :: Python :: 3'],
python_requires='>=3',
tests_require=['pytest'],
)
# ------------------------------------------
# To upload a new version on pypi
# ------------------------------------------
# Make sure everything was pushed (with a git status)
# (or git commit --am "Comment" and git push)
# export VERSION=0.1.4; git tag $VERSION -m "Update X-Client-Version + allow passing a selfie when Third factor authentication is required"; git push --tags
# If you need to delete a tag
# git push --delete origin $VERSION; git tag -d $VERSION