Skip to content

Commit 381f651

Browse files
committed
fix: Remove version and author from source code
1 parent faa9b81 commit 381f651

File tree

5 files changed

+13
-24
lines changed

5 files changed

+13
-24
lines changed

docs/source/conf.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
#
1515
import os
1616
import sys
17-
sys.path.insert(0, os.path.abspath('../../src/'))
17+
sys.path.insert(0, os.path.abspath('../../'))
1818

1919

2020
# -- Project information -----------------------------------------------------
21-
import plink_bed_reader
21+
import setup_package
2222

2323
project = 'plink-bed-reader'
24-
copyright = '2024, ' + plink_bed_reader.__author__
25-
author = plink_bed_reader.__author__
24+
author = setup_package.__author__
25+
copyright = '2024, ' + author
2626

2727
# The short X.Y version
28-
version = plink_bed_reader.__version__
28+
version = setup_package.__version__
2929
# The full version, including alpha/beta/rc tags
30-
release = plink_bed_reader.__version__
30+
release = setup_package.__version__
3131

3232

3333
# -- General configuration ---------------------------------------------------

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[tool.semantic_release]
22
assets = []
3-
version_variables = ["setup.py:__version__"]
3+
version_variables = ["setup_package.py:__version__"]
4+
build_command = "python setup_package.py sdist bdist_wheel"
45
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
56
commit_parser = "angular"
67
logging_use_named_masks = false

setup.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

setup.py renamed to setup_package.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import re
21
from setuptools import setup, find_packages
32

3+
__version__ = "0.0.1"
4+
__author__ = 'Rapsssito'
5+
46
if __name__ == '__main__':
57
with open("README.md", "r", encoding="utf-8") as fh:
68
long_description = fh.read()
@@ -10,12 +12,8 @@
1012

1113
with open("src/plink_bed_reader/__init__.py", "r", encoding="utf-8") as fd:
1214
init_content = fd.read()
13-
version = re.search(
14-
r'^__version__\s*=\s*[\'\"]([^\'\"]*)[\'\"]', init_content, re.MULTILINE
15-
).group(1)
16-
author = re.search(
17-
r'^__author__\s*=\s*[\'\"]([^\'\"]*)[\'\"]', init_content, re.MULTILINE
18-
).group(1)
15+
version = __version__
16+
author = __author__
1917

2018
setup(
2119
name='plink-bed-reader',

src/plink_bed_reader/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@
22
# Author: Rodrigo Martin
33
# MIT License
44
from .plink_bed_reader import PLINKBEDReader, BEDMode
5-
6-
__version__ = '0.0.1'
7-
__author__ = 'Rapsssito'

0 commit comments

Comments
 (0)