-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
53 lines (48 loc) · 1.73 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
import setuptools
import re
from glob import glob
from os.path import basename
from os.path import splitext
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# Obtain version from __init__.py
module_file = open("src/getfx/__init__.py").read()
metadata = dict(
re.findall(r"__([a-zA-Z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file)
)
name = "getfx"
version = metadata["version"]
min_python_version = metadata["minPythonVersion"]
setuptools.setup(
name=name,
author="Kamil Niklasinski",
license="Apache 2",
author_email="kamil.niklasinski@gmail.com",
version=version,
keywords="NBP API FX",
description="Get FX is tool to retrieve average FX rates from NBP",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
install_requires=["requests"],
setup_requires=["setuptools", "wheel"],
entry_points={"console_scripts": ["getfx = getfx.getfxnbp:init_cmd"]},
project_urls={
"Issue tracker": "https://github.com/kniklas/get-fx/issues",
"Documentation": "https://kniklas.github.io/get-fx/",
"Source": "https://github.com/kniklas/get-fx",
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
python_requires=">=" + min_python_version,
platforms="any",
)