-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (43 loc) · 1.71 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
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from confluence_calendar_api.version import __version__, __author__, __credits__
from pathlib import Path
import os
import re
from pip._internal.network.session import PipSession
from pip._internal.req import parse_requirements
readme = Path('README.md').read_text()
version = __version__
requirements = parse_requirements(os.path.join(os.path.dirname(__file__), 'requirements.txt'), session=PipSession())
readme = re.sub(r"Version: [0-9]*\.[0-9]*\.[0-9][0-9]*", f"Version: {version}", readme)
with open("README.md", "w") as readme_file:
readme_file.write(readme)
description = 'Confluence Calendar API Python Wrapper'
setup(
name='confluence-calendar-api',
version=f"{version}",
description=description,
long_description=f'{readme}',
long_description_content_type='text/markdown',
url='https://github.com/Knuckles-Team/confluence-calendar-api',
author=__author__,
author_email='knucklessg1@gmail.com',
license='Unlicense',
packages=['confluence_calendar_api'],
include_package_data=True,
install_requires=[str(requirement.requirement) for requirement in requirements],
py_modules=['confluence_calendar_api'],
package_data={'confluence_calendar_api': ['confluence_calendar_api']},
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: Public Domain',
'Environment :: Console',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
)