-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·40 lines (37 loc) · 1.52 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·40 lines (37 loc) · 1.52 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
#!/usr/bin/env python
from setuptools import setup, find_packages
import os
import re
def get_version():
with open(
os.path.join(os.path.dirname(__file__), "lunardate.py"),
"r",
encoding="utf-8",
) as f:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(name='lunardate',
version=get_version(),
py_modules = ['lunardate'],
description = 'A Chinese Calendar Library in Pure Python',
long_description = open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author = 'LI Daobing',
author_email = 'lidaobing@gmail.com',
url = 'https://github.com/lidaobing/python-lunardate',
license = 'GPL-3.0-or-later',
python_requires='>=3.7',
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)