File tree Expand file tree Collapse file tree 5 files changed +13
-24
lines changed Expand file tree Collapse file tree 5 files changed +13
-24
lines changed Original file line number Diff line number Diff line change 14
14
#
15
15
import os
16
16
import sys
17
- sys .path .insert (0 , os .path .abspath ('../../src/ ' ))
17
+ sys .path .insert (0 , os .path .abspath ('../../' ))
18
18
19
19
20
20
# -- Project information -----------------------------------------------------
21
- import plink_bed_reader
21
+ import setup_package
22
22
23
23
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
26
26
27
27
# The short X.Y version
28
- version = plink_bed_reader .__version__
28
+ version = setup_package .__version__
29
29
# The full version, including alpha/beta/rc tags
30
- release = plink_bed_reader .__version__
30
+ release = setup_package .__version__
31
31
32
32
33
33
# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change 1
1
[tool .semantic_release ]
2
2
assets = []
3
- version_variables = [" setup.py:__version__" ]
3
+ version_variables = [" setup_package.py:__version__" ]
4
+ build_command = " python setup_package.py sdist bdist_wheel"
4
5
commit_message = " {version}\n\n Automatically generated by python-semantic-release"
5
6
commit_parser = " angular"
6
7
logging_use_named_masks = false
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import re
2
1
from setuptools import setup , find_packages
3
2
3
+ __version__ = "0.0.1"
4
+ __author__ = 'Rapsssito'
5
+
4
6
if __name__ == '__main__' :
5
7
with open ("README.md" , "r" , encoding = "utf-8" ) as fh :
6
8
long_description = fh .read ()
10
12
11
13
with open ("src/plink_bed_reader/__init__.py" , "r" , encoding = "utf-8" ) as fd :
12
14
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__
19
17
20
18
setup (
21
19
name = 'plink-bed-reader' ,
Original file line number Diff line number Diff line change 2
2
# Author: Rodrigo Martin
3
3
# MIT License
4
4
from .plink_bed_reader import PLINKBEDReader , BEDMode
5
-
6
- __version__ = '0.0.1'
7
- __author__ = 'Rapsssito'
You can’t perform that action at this time.
0 commit comments