Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
64 lines (56 loc) · 2.23 KB
/
Copy pathsetup.py
File metadata and controls
64 lines (56 loc) · 2.23 KB
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
64
"""
This file is part of Volapi.
Volapi is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Volapi is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Volapi. If not, see <http://www.gnu.org/licenses/>.
"""
importre
fromsetuptoolsimportsetup
deffind_version(filename):
"""
Search for assignment of __version__ string in given file and
return what it is assigned to.
"""
withopen(filename, "r") asfilep:
version_file=filep.read()
version_match=re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
ifversion_match:
returnversion_match.group(1)
raiseRuntimeError("Unable to find version string.")
setup(
name="volapi",
version=find_version("volapi/constants.py"),
description="API for Volafile.org",
long_description=open("README.rst", "r").read(),
url="https://github.com/volafiled/python-volapi",
license="MIT",
author="RealDolos, szero",
author_email="dolos@cock.li, singleton@tfwno.gf",
packages=["volapi"],
extras_require={"FAST_JSON": ["orjson>=3,<4"]},
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
install_requires=[l.strip() forlinopen("requirements.txt").readlines()],
)