-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
53 lines (42 loc) · 1.47 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def touch(fname, times=None):
with open(fname, "a"):
os.utime(fname, times)
def main():
with open("README.md") as f:
readme = f.read()
with open("LICENSE") as f:
license_text = f.read()
with open("version.py") as f:
code = compile(f.read(), "version.py", "exec")
version_dict = {}
exec(code, {}, version_dict) # pylint: disable=exec-used
release = version_dict["release"]
metadata = dict(
name="zeropdk",
version=release,
description="PDK factory for klayout",
long_description=readme,
long_description_content_type="text/markdown",
license=license_text.split("\n")[0],
python_requires=">=3.7",
packages=find_packages(include=("zeropdk.*")),
url="https://github.com/lightwave-lab/zeropdk",
author="Thomas Ferreira de Lima <[email protected]>",
author_email="[email protected]",
include_package_data=True,
classifiers=(
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
),
install_requires=["numpy", "klayout", "scipy"],
)
setup(**metadata)
if __name__ == "__main__":
main()