Skip to content

Commit

Permalink
update dockerfile action base (#75)
Browse files Browse the repository at this point in the history
* update dockerfile action base

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Apr 27, 2023
1 parent c622750 commit 6b61be8
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12
FROM node:20
# docker build -t tributors .

ENV PATH /opt/conda/bin:${PATH}
Expand Down
1 change: 0 additions & 1 deletion tributors/client/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


def main(args, extra):

client = TributorsClient(skip_cache=args.skip_cache)

# Parse extra arguments
Expand Down
1 change: 0 additions & 1 deletion tributors/client/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


def main(args, extra):

client = TributorsClient(skip_cache=args.skip_cache)

# Parse extra arguments
Expand Down
1 change: 0 additions & 1 deletion tributors/client/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


def main(args, extra):

client = TributorsClient(skip_cache=args.skip_cache)

# Parse extra arguments
Expand Down
1 change: 0 additions & 1 deletion tributors/main/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def get_resource_lookups(self, from_resources=None, params=None):
lookups = {"login": set(), "orcid": set(), "email": set(), "name": set()}

for name in from_resources:

# Special case, tributors is just the entire cache
if name == "tributors":
lookups["login"].update(self.cache)
Expand Down
1 change: 0 additions & 1 deletion tributors/main/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def update_lookup(self):

# Iterate through GitHub and update metadata
for login, contributor in self.contributors.items():

# Don't include bots, and others specified with --skip-user
if not self.include_contributor(login):
continue
Expand Down
2 changes: 0 additions & 2 deletions tributors/main/orcid.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ def record_search(url, email, interactive=False):

print("\n\n%s\n======================================================" % email)
for idx, r in enumerate(results):

# Limit is ten results, count starting at 0
idx = idx + 1
if idx > 10:
Expand Down Expand Up @@ -214,7 +213,6 @@ def get_orcid(email, name=None, interactive=False):

# Attempt # 2 will use the first and last name
if name is not None and not orcid_id:

delim = "," if "," in name else " "
cleaner = "," if delim == " " else " "

Expand Down
2 changes: 0 additions & 2 deletions tributors/main/parsers/allcontrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@


class AllContribParser(ParserBase):

name = "allcontrib"

# https://allcontributors.org/docs/en/emoji-key
Expand Down Expand Up @@ -178,7 +177,6 @@ def update_from_names(self, names, ctype):
def update_from_logins(self, logins, ctype):
"""Given a list of logins, update the loaded logins"""
for login in logins:

# Check against contribution threshold, and not bot
if not self.include_contributor(login):
continue
Expand Down
1 change: 0 additions & 1 deletion tributors/main/parsers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def update_cache(self, update_lookup=True):

# Then add an Orcid lookup
for login, entry in self.cache.items():

# If we have an email, and orcid isn't defined
if "orcid" not in entry:
orcid = get_orcid(
Expand Down
4 changes: 0 additions & 4 deletions tributors/main/parsers/codemeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class CodeMetaParser(ParserBase):

name = "codemeta"

def __init__(self, filename=None, repo=None, params=None, **kwargs):
Expand Down Expand Up @@ -87,7 +86,6 @@ def update_from_logins(self, logins):
"""Update codemeta entries from GitHub logins"""
# Now add contributors using cache (new GitHub contributors) with known email or orcid that isn't present
for login in logins:

# Check against contribution threshold, and not bot
if not self.include_contributor(login):
continue
Expand Down Expand Up @@ -152,7 +150,6 @@ def update_lookup(self):
# Case 1: double match (unlikely but possible)
entry = None
if email in self.email_lookup and orcid in self.orcid_lookup:

# If they don't point to the same entry, stop
if self.email_lookup[email] != self.orcid_lookup[orcid]:
bot.warning(
Expand All @@ -171,7 +168,6 @@ def update_lookup(self):

# If we have a match (entry is defined) use it to update the record
if entry is not None:

# Update the name
if (
"givenName" in entry
Expand Down
2 changes: 0 additions & 2 deletions tributors/main/parsers/mailmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@


class MailmapParser(ParserBase):

name = "mailmap"

def __init__(self, filename=None, params=None, **kwargs):
Expand All @@ -38,7 +37,6 @@ def load_data(self):
sys.exit("%s does not exist" % self.filename)

for line in read_file(self.filename):

# keep track of the previous name, in case multiple per line
name = None

Expand Down
2 changes: 0 additions & 2 deletions tributors/main/parsers/zenodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@


class ZenodoParser(ParserBase):

name = "zenodo"

def __init__(self, filename=None, repo=None, params=None, **kwargs):
Expand Down Expand Up @@ -150,7 +149,6 @@ def update_from_logins(self, logins):
"""
# GitHub contributors are the source of truth
for login in logins:

# Check against contribution threshold, and not bot
if not self.include_contributor(login):
continue
Expand Down
1 change: 0 additions & 1 deletion tributors/utils/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class Command:
"""

def __init__(self, cmd=None):

cmd = cmd or []
self.returncode = None
self.out = []
Expand Down

0 comments on commit 6b61be8

Please sign in to comment.