-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (28 loc) · 879 Bytes
/
Copy pathsetup.py
File metadata and controls
36 lines (28 loc) · 879 Bytes
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
import glob
import os
from setuptools import setup, find_packages
import warnings
def here(filename):
return os.path.join(os.path.dirname(__file__), filename)
def load_version():
version_file = os.path.join(os.path.dirname(__file__), "src/atlas_i2c", "version.py")
version = {}
with open(version_file) as fd:
exec(fd.read(), version)
return version["__version__"]
def long_description():
with open("README.md", "r") as fd:
return fd.read()
setup(
name="atlas-i2c",
description="Atlas I2C",
url="https://github.com/timboring/atlas_i2c",
author="Tim Boring",
author_email="tim@boring.green",
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6",
version=load_version(),
long_description=long_description(),
long_description_content_type="text/markdown",
)