Skip to content

Commit b4fbfd0

Browse files
committed
BLD: update release related files
1 parent 6426aaa commit b4fbfd0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

release.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22
import shutil
33
import subprocess
44
import sys
5+
import yaml
56
from pathlib import Path
67

7-
import yaml
8-
from .setup import NAME, VERSION, DESCRIPTION, AUTHOR, AUTHOR_EMAIL, LICENSE, URL
8+
# package info
9+
NAME = 'pdffitx'
10+
VERSION = "0.1.0"
11+
DESCRIPTION = "A python package to model atomic pair distribution function (PDF) based on diffpy-cmi."
12+
AUTHOR = "Songsheng Tao"
13+
AUTHOR_EMAIL = '[email protected]'
14+
URL = 'https://github.com/st3107/pdffitx'
15+
LICENSE = "BSD (3-clause)"
916

17+
# conda info
1018
REVER_DIR = Path("rever")
1119
REQUIREMENTS = Path("requirements")
1220
CONDA_CHANNEL_SOURCES = ["defaults", "diffpy", "conda-forge"]

rever.xsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $ACTIVITIES = [
2828

2929
$VERSION_BUMP_PATTERNS = [
3030
('pdffitx/__init__.py', '__version__\s*=.*', "__version__ = '$VERSION'"),
31-
('setup.py', 'VERSION\s*=.*', "VERSION = '$VERSION'")
31+
('release.py', 'VERSION\s*=.*', "VERSION = '$VERSION'")
3232
]
3333

3434
$CHANGELOG_FILENAME = 'CHANGELOG.rst'

setup.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from setuptools import setup, find_packages
33
import sys
44

5+
from release import NAME, VERSION, DESCRIPTION, AUTHOR_EMAIL, URL
56

67
# NOTE: This file must remain Python 2 compatible for the foreseeable future,
78
# to ensure that we error out properly for people with outdated setuptools
@@ -26,15 +27,6 @@
2627
with open(path.join(here, 'README.rst'), encoding='utf-8') as readme_file:
2728
readme = readme_file.read()
2829

29-
# parameters for setup
30-
NAME = 'pdffitx'
31-
VERSION = "0.1.0"
32-
DESCRIPTION = "A python package to model atomic pair distribution function (PDF) based on diffpy-cmi."
33-
AUTHOR = "Songsheng Tao"
34-
AUTHOR_EMAIL = '[email protected]'
35-
URL = 'https://github.com/st3107/pdffitx'
36-
LICENSE = "BSD (3-clause)"
37-
3830
setup(
3931
name=NAME,
4032
version=VERSION,

0 commit comments

Comments
 (0)