Move to hatch-based build

master
Jan Petykiewicz 2 years ago
parent 41d994e8fc
commit cbd484db6a

3
.gitignore vendored

@ -1,5 +1,5 @@
*.pyc
__pycache__
__pycache__/
*.idea
@ -7,6 +7,7 @@ build/
dist/
*.egg-info/
.mypy_cache/
.pytest_cache/
*.swp
*.swo

@ -0,0 +1 @@
../LICENSE.md

@ -0,0 +1 @@
../README.md

@ -1,4 +0,0 @@
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
__version__ = '''
0.4
'''.strip()

@ -1,3 +1,6 @@
from .main import Map, Device
from .read import read
from .write import write
__author__ = 'Jan Petykiewicz'
__version__ = '0.4'

@ -0,0 +1,45 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "g85"
description = "G85 wafer map reader / writer"
readme = "README.md"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/g85"
repository = "https://mpxd.net/code/jan/g85"
keywords = [
"design",
"CAD",
"EDA",
"electronics",
"photonics",
"IC",
"mask",
"wafer",
"map",
"G85",
"wmap",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"numpy~=1.21",
]
[tool.hatch.version]
path = "g85/__init__.py"

@ -1,51 +0,0 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md', 'r') as f:
long_description = f.read()
with open('g85/VERSION.py', 'rt') as f:
version = f.readlines()[2].strip()
setup(
name='g85',
version=version,
description='G85 wafer map reader / writer',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jan Petykiewicz',
author_email='jan@mpxd.net',
url='https://mpxd.net/code/jan/g85',
packages=find_packages(),
package_data={
'g85': ['py.typed'],
},
install_requires=[
'numpy',
],
classifiers=[
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Manufacturing',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)',
],
keywords=[
'design',
'CAD',
'EDA',
'electronics',
'photonics',
'IC',
'mask',
'wafer',
'map',
'G85',
'wmap',
],
)
Loading…
Cancel
Save