Move to hatch based build
This commit is contained in:
parent
cdea93eef0
commit
2700977a76
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,5 @@ __pycache__/
|
||||
build/
|
||||
dist/
|
||||
*.egg-info/
|
||||
.mypy_cache
|
||||
.mypy_cache/
|
||||
.pytest_cache/
|
||||
|
1
lethe/LICENSE.md
Symbolic link
1
lethe/LICENSE.md
Symbolic link
@ -0,0 +1 @@
|
||||
../LICENSE.md
|
1
lethe/README.md
Symbolic link
1
lethe/README.md
Symbolic link
@ -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.12
|
||||
'''.strip()
|
@ -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
48
pyproject.toml
Normal 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"
|
56
setup.py
56
setup.py
@ -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',
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue
Block a user