Compare commits
No commits in common. "8d15b4576cc8b669a4d49b91fdbbbe88f8e19458" and "348706d60b39f30149dc36bf3619b74e720019b3" have entirely different histories.
8d15b4576c
...
348706d60b
3 changed files with 84 additions and 4 deletions
|
|
@ -1 +1 @@
|
||||||
__version__ = "0.1.32"
|
__version__ = '0.1.31'
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mysignal"
|
name = "mysignal"
|
||||||
version = "0.1.34" # ← Déplace la version ici plutôt que dans tool.bumpver
|
|
||||||
description = "A short description of the project"
|
description = "A short description of the project"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.6"
|
requires-python = ">=3.6"
|
||||||
|
|
@ -34,11 +33,17 @@ dependencies = [
|
||||||
Homepage = "https://github.com/yourusername/yourproject"
|
Homepage = "https://github.com/yourusername/yourproject"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
|
# Inclure les fichiers de données spécifiés dans MANIFEST.in
|
||||||
include-package-data = true
|
include-package-data = true
|
||||||
|
# Trouver automatiquement les packages
|
||||||
packages = {find = {}}
|
packages = {find = {}}
|
||||||
|
|
||||||
|
# Configuration optionnelle pour scripts d'entrée
|
||||||
|
# [project.scripts]
|
||||||
|
# sample = "sample:main"
|
||||||
|
|
||||||
[tool.bumpver]
|
[tool.bumpver]
|
||||||
current_version = "0.1.34"
|
current_version = "0.1.31" # Définissez votre version initiale ici
|
||||||
version_pattern = "MAJOR.MINOR.PATCH"
|
version_pattern = "MAJOR.MINOR.PATCH"
|
||||||
commit_message = "bump version {old_version} -> {new_version}"
|
commit_message = "bump version {old_version} -> {new_version}"
|
||||||
tag_message = "v{new_version}"
|
tag_message = "v{new_version}"
|
||||||
|
|
@ -49,7 +54,10 @@ push = false
|
||||||
[tool.bumpver.file_patterns]
|
[tool.bumpver.file_patterns]
|
||||||
"pyproject.toml" = [
|
"pyproject.toml" = [
|
||||||
'current_version = "{version}"',
|
'current_version = "{version}"',
|
||||||
'version = "{version}"', # Correspond à [project] version
|
'version = "{version}"',
|
||||||
|
]
|
||||||
|
"setup.py" = [
|
||||||
|
'version = read_version(\'mysignal\')',
|
||||||
]
|
]
|
||||||
"mysignal/__init__.py" = [
|
"mysignal/__init__.py" = [
|
||||||
'__version__ = "{version}"'
|
'__version__ = "{version}"'
|
||||||
|
|
|
||||||
72
setup.py
Normal file
72
setup.py
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
|
def read_version(name):
|
||||||
|
with open(os.path.join(os.path.dirname(__file__), name, '__init__.py')) as f:
|
||||||
|
for line in f:
|
||||||
|
match = re.match(r"^__version__ = ['\"]([^'\"]*)['\"]", line)
|
||||||
|
if match:
|
||||||
|
return match.group(1)
|
||||||
|
raise RuntimeError("Unable to find version string.")
|
||||||
|
|
||||||
|
def parse_requirements(filename):
|
||||||
|
with open(filename, 'r') as file:
|
||||||
|
return file.read().splitlines()
|
||||||
|
|
||||||
|
# Get the long description from the README file
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||||
|
long_description = f.read()
|
||||||
|
|
||||||
|
|
||||||
|
setup(
|
||||||
|
name='mysignal', # Required
|
||||||
|
version = read_version('mysignal'),
|
||||||
|
description='A short description of the project', # Optional
|
||||||
|
long_description=long_description, # Optional
|
||||||
|
long_description_content_type='text/markdown', # Optional (see note above)
|
||||||
|
url='https://github.com/yourusername/yourproject', # Optional
|
||||||
|
author='Your Name', # Optional
|
||||||
|
author_email='your.email@example.com', # Optional
|
||||||
|
|
||||||
|
# Automatically find packages in the current directory
|
||||||
|
packages=find_packages(), # Required
|
||||||
|
|
||||||
|
# Include additional files specified in MANIFEST.in
|
||||||
|
include_package_data=True, # Optional
|
||||||
|
|
||||||
|
# Define your dependencies in a separate file
|
||||||
|
install_requires=parse_requirements('requirements.txt'), # Optional
|
||||||
|
|
||||||
|
# Classifiers help users find your project by categorizing it
|
||||||
|
classifiers=[
|
||||||
|
'Development Status :: 3 - Alpha',
|
||||||
|
'Intended Audience :: Developers',
|
||||||
|
'Topic :: Software Development :: Build Tools',
|
||||||
|
'License :: OSI Approved :: MIT License',
|
||||||
|
'Programming Language :: Python :: 3',
|
||||||
|
'Programming Language :: Python :: 3.6',
|
||||||
|
'Programming Language :: Python :: 3.7',
|
||||||
|
'Programming Language :: Python :: 3.8',
|
||||||
|
'Programming Language :: Python :: 3.9',
|
||||||
|
],
|
||||||
|
|
||||||
|
# Specify the Python versions you support
|
||||||
|
python_requires='>=3.6, <4',
|
||||||
|
|
||||||
|
# Specify additional groups of dependencies (e.g., for testing)
|
||||||
|
# extras_require={
|
||||||
|
# 'dev': ['check-manifest'],
|
||||||
|
# 'test': ['coverage'],
|
||||||
|
# },
|
||||||
|
|
||||||
|
# You can also specify entry points for command-line scripts
|
||||||
|
# entry_points={
|
||||||
|
# 'console_scripts': [
|
||||||
|
# 'sample=sample:main',
|
||||||
|
# ],
|
||||||
|
# },
|
||||||
|
)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue