Skip to content

Commit 97e6682

Browse files
committed
Updated files with 'repo_helper'.
1 parent 1f5fabd commit 97e6682

File tree

6 files changed

+21
-40
lines changed

6 files changed

+21
-40
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ target/
4949
.ipynb_checkpoints
5050
.python-version
5151
celerybeat-schedule
52+
celerybeat.pid
5253
*.sage.py
5354
.env
5455
.venv
@@ -62,6 +63,8 @@ venv.bak/
6263
.ropeproject
6364
/site
6465
.mypy_cache/
66+
.dmypy.json
67+
dmypy.json
6568
*.iml
6669
*.ipr
6770
cmake-build-*/
@@ -75,6 +78,10 @@ crashlytics-build.properties
7578
fabric.properties
7679
.idea
7780
build
78-
*.egg-info
7981
**/__pycache__
8082
**/conda
83+
__pypackages__/
84+
profile_default/
85+
ipython_config.py
86+
Pipfile.lock
87+
.pyre/

__pkginfo__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
pypi_name = "flake8_sphinx_links"
4545
import_name = "flake8_sphinx_links"
4646
__license__ = "MIT License"
47-
short_desc = "A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation."
48-
__author__ = author = "Dominic Davis-Foster"
49-
author_email = "dominic@davis-foster.co.uk"
47+
short_desc = 'A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation.'
48+
__author__ = author = 'Dominic Davis-Foster'
49+
author_email = 'dominic@davis-foster.co.uk'
5050
github_username = "domdfcoding"
5151
web = github_url = "https://github.com/domdfcoding/flake8-sphinx-links"
5252
repo_root = pathlib.Path(__file__).parent

make_conda_recipe.py

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
# This file is managed by `repo_helper`. Don't edit it directly.
44

5-
# stdlib
6-
import platform
7-
import sys
8-
from io import StringIO
9-
10-
# 3rd party
11-
import rst2txt
12-
from docutils.core import publish_file
13-
145
# this package
156
from __pkginfo__ import * # pylint: disable=wildcard-import
167

@@ -30,20 +21,17 @@
3021
all_requirements = {x.replace(" ", '') for x in set(all_requirements)}
3122
requirements_block = "\n".join(f" - {req}" for req in all_requirements if req)
3223

33-
# txt_readme = publish_file(source=StringIO(long_description), writer=rst2txt.Writer())
34-
# description_block = "\n".join([line.replace('"', '\\"') for line in txt_readme.split("\n")])
3524
description_block = conda_description.replace('"', '\\"')
3625

37-
with open(recipe_dir / "meta.yaml", 'w') as fp:
38-
fp.write(f"""{{% set name = "{pypi_name}" %}}
39-
{{% set version = "{__version__}" %}}
40-
26+
(recipe_dir / "meta.yaml").write_text(
27+
encoding="UTF-8",
28+
data=f"""\
4129
package:
42-
name: "{{{{ name|lower }}}}"
43-
version: "{{{{ version }}}}"
30+
name: "{pypi_name.lower()}"
31+
version: "{__version__}"
4432
4533
source:
46-
url: "https://pypi.io/packages/source/{{{{ name[0] }}}}/{{{{ name }}}}/{{{{ name }}}}-{{{{ version }}}}.tar.gz"
34+
url: "https://pypi.io/packages/source/{pypi_name[0]}/{pypi_name}/{pypi_name}-{__version__}.tar.gz"
4735
4836
build:
4937
# entry_points:
@@ -74,7 +62,7 @@
7462
home: "{web}"
7563
license: "{__license__}"
7664
# license_family: LGPL
77-
# license_file: requirements.txt
65+
# license_file: LICENSE
7866
summary: "{short_desc}"
7967
description: "{description_block}"
8068
doc_url: {project_urls["Documentation"]}
@@ -88,18 +76,3 @@
8876
""")
8977

9078
print(f"Wrote recipe to {recipe_dir / 'meta.yaml'}")
91-
#
92-
# plat = platform.system().lower()
93-
# arch = platform.architecture()[0][:2]
94-
#
95-
# if plat == "linux":
96-
# conda_arch = f"linux-{arch}"
97-
# elif plat == "windows":
98-
# conda_arch = f"win-{arch}"
99-
# elif plat == "darwin":
100-
# conda_arch = f"osx-{arch}"
101-
# else:
102-
# sys.exit(1)
103-
#
104-
# with open(recipe_dir / "conda_arch.sh", 'w') as fp:
105-
# fp.write(f'#!/bin/bash\necho "{conda_arch}"')

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
requires = [
33
"setuptools >= 40.6.0",
44
"wheel >= 0.34.2",
5-
65
]
76
build-backend = "setuptools.build_meta"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
setup(
18-
description="A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation.",
18+
description='A flake8 plugin which checks docstrings for double backticked strings that should be links to the Python documentation.',
1919
extras_require=extras_require,
2020
install_requires=install_requires,
2121
py_modules=[],

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
envlist = py36, py37, py38, py39-dev, pypy3, mypy, build
55
skip_missing_interpreters = true
66
requires = pip >= 19.0.0
7+
isolated_build = true
78

89

910
[travis]
@@ -131,6 +132,7 @@ commands =
131132

132133
[testenv:pyup]
133134
basepython = python3.6
135+
skip_install = true
134136

135137
ignore_errors = true
136138
changedir={toxinidir}

0 commit comments

Comments
 (0)