mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Minor python changes (#832)
* Minor python changes Use dataclasses instead of attrs. The former is part of the standard lib while the latter may need to be installed separately. Also added python3 to the list of prerequisites.
This commit is contained in:
parent
8026ef346f
commit
bc89963b3d
2 changed files with 4 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import attr
|
import dataclasses
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -25,7 +25,7 @@ import sys
|
||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
|
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@dataclasses.dataclass
|
||||||
class Property:
|
class Property:
|
||||||
name : str = ''
|
name : str = ''
|
||||||
desc : str = ''
|
desc : str = ''
|
||||||
|
@ -39,7 +39,7 @@ class Property:
|
||||||
raise ValidationError('value of {self.name} must be "true" or '
|
raise ValidationError('value of {self.name} must be "true" or '
|
||||||
'"false".')
|
'"false".')
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@dataclasses.dataclass
|
||||||
class GradleFlag:
|
class GradleFlag:
|
||||||
flags : Union[str, List[str]]
|
flags : Union[str, List[str]]
|
||||||
desc : str
|
desc : str
|
||||||
|
|
|
@ -11,6 +11,7 @@ You will need the following programs installed on your local machine:
|
||||||
* [Google App Engine SDK for Java][app-engine-sdk], and configure aliases to
|
* [Google App Engine SDK for Java][app-engine-sdk], and configure aliases to
|
||||||
to the `gcloud` and `appcfg.sh` utilities (you'll use them a lot).
|
to the `gcloud` and `appcfg.sh` utilities (you'll use them a lot).
|
||||||
* [Git](https://git-scm.com/) version control system.
|
* [Git](https://git-scm.com/) version control system.
|
||||||
|
* Python version 3.7 or newer.
|
||||||
|
|
||||||
**Note:** App Engine does not yet support Java 9. Also, the instructions in this
|
**Note:** App Engine does not yet support Java 9. Also, the instructions in this
|
||||||
document have only been tested on Linux. They might work with some alterations
|
document have only been tested on Linux. They might work with some alterations
|
||||||
|
|
Loading…
Add table
Reference in a new issue