-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (46 loc) · 1.48 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
import re
from pathlib import Path
from setuptools import find_packages, setup
def search(substr: str, content: str):
found = re.search(substr, content)
if found:
return found.group(1)
return ""
with open("lsys/__init__.py", encoding="utf8") as f:
content = f.read()
version = search(r'__version__ = "(.*?)"', content)
author = search(r'__author__ = "(.*?)"', content)
author_email = search(r'__email__ = "(.*?)"', content)
requirements = ["numpy", "matplotlib"]
test_requirements = ["pytest>=3.1", "pytest-mpl>=0.8"]
setup(
name="lsys",
version=version,
description="Create and visualize Lindenmayer systems",
long_description=Path("./README.md").read_text(),
long_description_content_type="text/markdown",
author=author,
author_email=author_email,
url="https://github.com/austinorr/lsys",
packages=find_packages(),
include_package_data=False,
install_requires=requirements,
license="BSD license",
zip_safe=False,
keywords=["l-systems", "lindenmayer", "fractal"],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3.6",
],
python_requires=">=3.8",
test_suite="lsys.tests",
tests_require=test_requirements,
entry_points={
"console_scripts": [
"lsys = lsys.cli:main",
],
},
)