-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
63 lines (53 loc) · 1.93 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
54
55
56
57
58
59
60
61
62
63
# Copyright (c) 2023 Disintar LLP Licensed under the Apache License Version 2.0
import os
from setuptools import setup, find_packages
IS_DEV = os.environ.get('DEV_PYPI', False)
with open(f"README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open(f"requirements.txt", encoding="utf-8") as fh:
install_requires = fh.read().split('\n')
with open(f"docs_requirements.txt", encoding="utf-8") as fh:
docs_extras = fh.read().split('\n')
with open(f"built_requirements.txt", encoding="utf-8") as fh:
built_extras = fh.read().split('\n')
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
plat_name = 'manylinux2014_x86_64'
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
except ImportError:
bdist_wheel = None
setup(
name="tonpy" if not IS_DEV else "tonpy-dev",
version="0.0.0.1.4c0",
author="Disintar LLP",
author_email="[email protected]",
description="Types / API for TON blockchain",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/disintar/tonpy",
project_urls={
"Bug Tracker": "https://github.com/disintar/tonpy/issues",
},
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
'Intended Audience :: Developers',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: PyPy',
],
setup_requires=install_requires,
install_requires=install_requires,
python_requires=">3.8,<3.12",
packages=find_packages(
where='src', # '.' by default
),
package_dir={
"": "src",
},
extras_require={'docs': docs_extras, 'built': built_extras},
cmdclass={'bdist_wheel': bdist_wheel},
include_package_data=True
)