"vscode:/vscode.git/clone" did not exist on "7ce89e979c45ab954fd49106668a5f465aacb08c"
Commit 89ff3b46 authored by Gao, Xiang's avatar Gao, Xiang Committed by Farhad Ramezanghorbani
Browse files

Remove python2 support from CI, _six, etc. (#370)

* Remove python2 step 1

* badge

* Delete _six.py
parent ae2497de
name: python2
on:
pull_request:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
ci/install_dependencies_python2.sh
pip install .
- name: Run minimum python2 tests
run: |
python2 examples/energy_force.py
python2 examples/ase_interface.py
...@@ -9,7 +9,6 @@ Checks: ...@@ -9,7 +9,6 @@ Checks:
[![Actions Status](https://github.com/aiqm/torchani/workflows/docs/badge.svg)](https://github.com/aiqm/torchani/actions) [![Actions Status](https://github.com/aiqm/torchani/workflows/docs/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/flake8/badge.svg)](https://github.com/aiqm/torchani/actions) [![Actions Status](https://github.com/aiqm/torchani/workflows/flake8/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/python2/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/runnable%20submodules/badge.svg)](https://github.com/aiqm/torchani/actions) [![Actions Status](https://github.com/aiqm/torchani/workflows/runnable%20submodules/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/tools/badge.svg)](https://github.com/aiqm/torchani/actions) [![Actions Status](https://github.com/aiqm/torchani/workflows/tools/badge.svg)](https://github.com/aiqm/torchani/actions)
[![Actions Status](https://github.com/aiqm/torchani/workflows/unit%20tests/badge.svg)](https://github.com/aiqm/torchani/actions) [![Actions Status](https://github.com/aiqm/torchani/workflows/unit%20tests/badge.svg)](https://github.com/aiqm/torchani/actions)
......
#!/bin/bash
python -m pip install --upgrade pip
pip install --pre torch torchvision -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
pip install tqdm pyyaml future pkbar
pip2 install 'ase<=3.17'
import math
if not hasattr(math, 'inf'):
math.inf = float('inf')
from __future__ import division
import torch import torch
from . import _six # noqa:F401
import math import math
from typing import Tuple, Optional from typing import Tuple, Optional
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
https://wiki.fysik.dtu.dk/ase https://wiki.fysik.dtu.dk/ase
""" """
from __future__ import absolute_import
import torch import torch
from .nn import Sequential from .nn import Sequential
import ase.neighborlist import ase.neighborlist
......
...@@ -9,7 +9,6 @@ import struct ...@@ -9,7 +9,6 @@ import struct
import itertools import itertools
import math import math
import timeit import timeit
from . import _six # noqa:F401
import collections import collections
import sys import sys
from ..nn import ANIModel, Ensemble, Gaussian, Sequential from ..nn import ANIModel, Ensemble, Gaussian, Sequential
......
import collections
if not hasattr(collections, 'abc'):
collections.abc = collections
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment