Move to hatch based build

This commit is contained in:
Jan Petykiewicz 2022-08-18 23:01:59 -07:00
parent cdea93eef0
commit 2700977a76
7 changed files with 53 additions and 63 deletions

3
.gitignore vendored
View File

@ -7,4 +7,5 @@ __pycache__/
build/
dist/
*.egg-info/
.mypy_cache
.mypy_cache/
.pytest_cache/

1
lethe/LICENSE.md Symbolic link
View File

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

1
lethe/README.md Symbolic link
View File

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

View File

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

View File

@ -9,7 +9,6 @@ from .lethe import (
)
from .endpoints import main
from .VERSION import __version__
__author__ = 'Jan Petykeiwicz'
__version__ = '0.12'

48
pyproject.toml Normal file
View File

@ -0,0 +1,48 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lethe"
description = "Lithography mask library"
readme = "README.md"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/lethe"
repository = "https://mpxd.net/code/jan/lethe"
keywords = [
"git",
"snapshot",
"commit",
"refs",
"backup",
"undo",
"log",
"lab notebook",
"traceability",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Utilities",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
]
[tool.hatch.version]
path = "lethe/__init__.py"
[project.scripts]
lethe = "lethe.endpoints:main"
lethe-push = "lethe.endpoints:push"
lethe-fetch = "lethe.endpoints:fetch"

View File

@ -1,56 +0,0 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md', 'rt') as f:
long_description = f.read()
with open('lethe/VERSION.py', 'rt') as f:
version = f.readlines()[2].strip()
setup(name='lethe',
version=version,
description='Git-based snapshotting',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jan Petykiewicz',
author_email='jan@mpxd.net',
url='https://mpxd.net/code/jan/lethe',
packages=find_packages(),
package_data={
'lethe': ['py.typed'],
},
entry_points={
'console_scripts': [
'lethe=lethe:endpoints.main',
'lethe-push=lethe:endpoints.push',
'lethe-fetch=lethe:endpoints.fetch',
],
},
install_requires=[
'typing',
],
keywords=[
'git',
'snapshot',
'commit',
'refs',
'backup',
'undo',
'log',
'lab notebook',
'traceability',
],
classifiers=[
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Software Development :: Version Control :: Git',
'Topic :: Utilities',
],
)