Skip to content

Commit

Permalink
Drop more references to Python 3.6 (pyro-ppl#3047)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo authored Mar 18, 2022
1 parent ebd0bc1 commit d143002
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 14 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ For additional blog posts, check out work on [experimental design](https://eng.u
### Installing a stable Pyro release

**Install using pip:**

Pyro supports Python 3.6+.

```sh
pip install pyro-ppl
```
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ column_limit = 120
# Global options:

[mypy]
python_version = 3.6
python_version = 3.7
warn_return_any = True
warn_unused_configs = True
warn_incomplete_stub = True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"seaborn",
"wget",
"lap",
# 'biopython>=1.54', # Requires Python 3.6
# 'biopython>=1.54',
# 'scanpy>=1.4', # Requires HDF5
# 'scvi>=0.6', # Requires loopy and other fragile packages
]
Expand Down
10 changes: 2 additions & 8 deletions tests/distributions/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,8 @@ def test_pickle(Dist):
args = ARGS[Dist]
else:
# Optimistically try to initialize with Dist(1, 1, ..., 1).
try:
# Python 3.6+
spec = list(inspect.signature(Dist.__init__).parameters.values())
nargs = sum(1 for p in spec if p.default is p.empty) - 1
except AttributeError:
# Python 2.6-3.5
spec = inspect.getargspec(Dist.__init__)
nargs = len(spec.args) - 1 - (len(spec.defaults) if spec.defaults else 0)
spec = list(inspect.signature(Dist.__init__).parameters.values())
nargs = sum(1 for p in spec if p.default is p.empty) - 1
args = (1,) * nargs
try:
dist = Dist(*args)
Expand Down
2 changes: 1 addition & 1 deletion tutorial/source/cleannb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def cleannb(nbfile):
nb["metadata"]["kernelspec"]["name"] = "python3"
nb["metadata"]["language_info"]["codemirror_mode"]["version"] = 3
nb["metadata"]["language_info"]["pygments_lexer"] = "ipython3"
nb["metadata"]["language_info"]["version"] = "3.6.10"
nb["metadata"]["language_info"]["version"] = "3.7.1"

with io.open(nbfile, "w", encoding="utf8") as f:
nbformat.write(nb, f)
Expand Down

0 comments on commit d143002

Please sign in to comment.