Skip to content

Commit c8e7887

Browse files
committed
CHANGELOG
1 parent 46fa345 commit c8e7887

File tree

5 files changed

+54
-20
lines changed

5 files changed

+54
-20
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Release notes
2+
3+
<!-- do not remove -->
4+
## 1.0.1
5+
6+
### Breaking Changes
7+
8+
- Change arguments of `store_attr()` and remove `store_attrs` attribute ([#71](https://github.com/fastai/fastcore/pull/71))
9+
- `store_attr`'s API has changed. `self` is now the second parameter, and is optional. Previously, if no names were passed to store,
10+
names were taken from the `store_attrs` attribute; now, however, names are taken from the list of arguments to the current function.
11+
12+
### New Features
13+
14+
- Warn if defaults passed to `typedispatch` ([#73](https://github.com/fastai/fastcore/pull/73))
15+
16+
- Add `urlread` and `urljson` ([#72](https://github.com/fastai/fastcore/pull/72))
17+
18+
## Version 1.0.0
19+
20+
- Initial release
21+

Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.ONESHELL:
2+
SHELL := /bin/bash
3+
SHELLFLAGS := -e
4+
15
SRC = $(wildcard nbs/*.ipynb)
26

37
all: fastcore docs
@@ -17,12 +21,20 @@ docs: $(SRC)
1721
test:
1822
nbdev_test_nbs
1923

20-
release: pypi
21-
git tag "$(python setup.py version)"
22-
git push --tags
23-
nbdev_conda_package --upload_user fastai --build_args '-c pytorch -c fastai'
24+
release: pypi tag conda_release
2425
nbdev_bump_version
2526

27+
conda_release:
28+
nbdev_conda_package --upload_user fastai --build_args '-c pytorch -c fastai'
29+
30+
tag:
31+
export TAG="$$(python setup.py version)"
32+
echo "$$(python setup.py version)"
33+
echo "$${TAG}"
34+
git tag "$${TAG}"
35+
git push --tags
36+
gh api repos/:owner/:repo/releases -F tag_name="$${TAG}" -F name="$${TAG}"
37+
2638
pypi: dist
2739
twine upload --repository pypi dist/*
2840

fastcore/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.0.3"

settings.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author = Jeremy Howard and Sylvain Gugger
77
author_email = [email protected]
88
copyright = fast.ai
99
branch = master
10-
version = 1.0.2
10+
version = 1.0.3
1111
min_python = 3.6
1212
audience = Developers
1313
language = English

setup.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import setuptools,sys
21
from pkg_resources import parse_version
32
from configparser import ConfigParser
4-
from distutils.cmd import Command
5-
3+
import setuptools,re,sys
64
assert parse_version(setuptools.__version__)>=parse_version('36.2')
75

86
# note: all settings are in settings.ini; edit there, not here
@@ -15,24 +13,28 @@
1513
for o in expected: assert o in cfg, "missing expected setting: {}".format(o)
1614
setup_cfg = {o:cfg[o] for o in cfg_keys}
1715

16+
if len(sys.argv)>1 and sys.argv[1]=='version':
17+
print(setup_cfg['version'])
18+
exit()
19+
1820
licenses = {
1921
'apache2': ('Apache Software License 2.0','OSI Approved :: Apache Software License'),
2022
}
2123
statuses = [ '1 - Planning', '2 - Pre-Alpha', '3 - Alpha',
2224
'4 - Beta', '5 - Production/Stable', '6 - Mature', '7 - Inactive' ]
2325
py_versions = '2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8'.split()
26+
min_python = cfg['min_python']
27+
lic = licenses[cfg['license']]
2428

25-
requirements = ['pip', 'packaging', 'wheel']
29+
requirements = ['pip', 'packaging']
2630
if cfg.get('requirements'): requirements += cfg.get('requirements','').split()
2731
if cfg.get('pip_requirements'): requirements += cfg.get('pip_requirements','').split()
2832

29-
dev_requirements = cfg.get('dev_requirements','').split()
30-
lic = licenses[cfg['license']]
31-
min_python = cfg['min_python']
32-
33-
if len(sys.argv)>1 and sys.argv[1]=='version':
34-
print(setup_cfg['version'])
35-
exit()
33+
long_description = open('README.md').read()
34+
# ![png](docs/images/output_13_0.png)
35+
for ext in ['png', 'svg']:
36+
long_description = re.sub(r'!\['+ext+'\]\((.*)\)', '!['+ext+']('+'https://raw.githubusercontent.com/{}/{}'.format(cfg['user'],cfg['lib_name'])+'/'+cfg['branch']+'/\\1)', long_description)
37+
long_description = re.sub(r'src=\"(.*)\.'+ext+'\"', 'src=\"https://raw.githubusercontent.com/{}/{}'.format(cfg['user'],cfg['lib_name'])+'/'+cfg['branch']+'/\\1.'+ext+'\"', long_description)
3638

3739
setuptools.setup(
3840
name = cfg['lib_name'],
@@ -43,13 +45,12 @@
4345
'License :: ' + lic[1],
4446
'Natural Language :: ' + cfg['language'].title(),
4547
] + ['Programming Language :: Python :: '+o for o in py_versions[py_versions.index(min_python):]],
46-
url = 'https://github.com/{}/{}'.format(cfg['user'],cfg['lib_name']),
48+
url = cfg['git_url'],
4749
packages = setuptools.find_packages(),
4850
include_package_data = True,
4951
install_requires = requirements,
50-
extras_require = { 'dev': dev_requirements },
5152
python_requires = '>=' + cfg['min_python'],
52-
long_description = open('README.md').read(),
53+
long_description = long_description,
5354
long_description_content_type = 'text/markdown',
5455
zip_safe = False,
5556
entry_points = { 'console_scripts': cfg.get('console_scripts','').split() },

0 commit comments

Comments
 (0)